#include "IpcChannelManager.h"
#include "IpcClientManager.h"


typedef struct {
    IpcChannelManager* channelManager;
    IpcClientManager* clientManager;
} IpcClientLoadInfo;

static IpcClientLoadInfo ipcClient = {0};

void ipcChannelLoad() {
    ipcClient.channelManager = newIpcChannelManager();
    ipcClient.clientManager = new IpcClientManager();
}

void ipcChannelUnload() {
    deleteIpcChannelManager(ipcClient.channelManager);
    ipcClient.channelManager = NULL;
    delete ipcClient.clientManager;
    ipcClient.clientManager = nullptr;
}

IpcClientManager* getDefaultClientManager() {
    return ipcClient.clientManager;
}

